package com.iwat.enumeration;

/**
 * @Author wangweiqiang
 * @Classname ResultCode
 * @Date 2022/3/27 17:18
 * @Description TODO
 */
public enum ResultCode {
    SUCCESS(200, "SUCCESS"),
    FAILE(-1, "FAILE"),
    PARAM_ERROR(201, "参数不合法"),
    UN_LOGIN(401, "未登录"),
    USER_UNAUTHORIZED(402, "用户名或密码不正确"),
    UNAUTHORIZED(403, "未认证或Token失效"),
    NOT_FOUND(404, "接口不存在"),
    SYSTEM_UNKNOWN_ERROR(500, "服务器内部错误");

    private Integer code;
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
